/***************************************************************************
    begin                : aug 01 2010
    copyright            : (C) 2010 by Benoit Valot
    email                : benvalot@gmail.com
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 23 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

package val.lemonde;

public class CssStyle {

	public CssStyle(){
		
	}
	
	public String get_css_data(){
		StringBuffer data = new StringBuffer() ;
//		data.append("html, body, div, span, object, iframe,	h1, h2, h3, h4, h5, h6, p, blockquote, pre,	abbr, address, cite, code,"+
//		"del, dfn, em, img, ins, kbd, q, samp,"+
//		"small, strong, sub, sup, var,"+
//		"b, i,dl, dt, dd, ol, ul, li,"+
//		"fieldset, form, label, legend,	table, caption, tbody, tfoot, thead, tr, th, td,"+
//		"article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary,"+
//		"time, mark, audio, video \\{ margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent;}"+"\n");          
//		data.append("article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display:block;}"+"\n");  
//		data.append("nav ul { list-style:none; }"+"\n");
//		data.append("blockquote, q { quotes:none; }"+"\n");
//		data.append("blockquote:before, blockquote:after,q:before, q:after { content:''; content:none; }"+"\n");
//		data.append("a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }"+"\n");
//		data.append("ins { background-color:#ff9; color:#000; text-decoration:none; }"+"\n");
//		data.append("mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }"+"\n");
//		data.append("del { text-decoration: line-through; }"+"\n");
//		data.append("abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }"+"\n");
//		data.append("table { border-collapse:collapse; border-spacing:0; }"+"\n");
//		data.append("hr { display:block; height:2px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; color: red;background-color: red;}"+"\n");
//		data.append("input, select { vertical-align:middle; }"+"\n");
//		data.append("html { -webkit-text-size-adjust: none; -ms-text-size-adjust: none;}"+"\n");
//		data.append("body { font:13px/1.231 sans-serif; *font-size:small; }"+"\n");
//		data.append("select, input, textarea, button { font:99% sans-serif; }"+"\n");
//		data.append("pre, code, kbd, samp { font-family: monospace, sans-serif; }"+"\n");
//		data.append("a:hover, a:active { outline: none; }"+"\n");
//		data.append("ul, ol { margin-left: 2em; }"+"\n");
//		data.append("ol { list-style-type: decimal; }"+"\n");
//		data.append("nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }"+"\n");
//		data.append("small { font-size: 85%; }"+"\n");
//		data.append("strong, th { font-weight: bold; }"+"\n");
//		data.append("td { vertical-align: top; }"+"\n");
//		data.append("sub, sup { font-size: 75%; line-height: 0; position: relative; }"+"\n");
//		data.append("sup { top: -0.5em; }"+"\n");
//		data.append("sub { bottom: -0.25em; }"+"\n");	
//		data.append("pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 15px;}"+"\n");
//		data.append("textarea { overflow: auto; }"+"\n");
//		data.append(".iem7 legend { margin-left: -7px; }"+"\n");		
//		data.append("input[type=\"radio\"] { vertical-align: text-bottom; }"+"\n");
//		data.append("input[type=\"checkbox\"] { vertical-align: bottom; }"+"\n");
//		data.append(".iem7 input[type=\"checkbox\"] { vertical-align: baseline; }"+"\n");		
//		data.append("label, input[type=\"button\"], input[type=\"submit\"], input[type=\"image\"], button { cursor: pointer; }"+"\n");
//		data.append("button, input, select, textarea { margin: 0; }"+"\n");
//		data.append("input:valid, textarea:valid   {  }"+"\n");		
//		data.append("input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red;}"+"\n");
//		data.append(".no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }"+"\n");
//		data.append("::-moz-selection{ background: #90B5DA; color:#fff; text-shadow: none; }"+"\n");		
//		data.append("::selection { background:#90B5DA; color:#fff; text-shadow: none; }"+"\n");
//		data.append("a:link { -webkit-tap-highlight-color: #90B5DA; }"+"\n");
//		data.append("button {  width: auto; overflow: visible; }"+"\n");		
//		data.append(".iem7 img { -ms-interpolation-mode: bicubic; }"+"\n");
//		data.append("body, select, input, textarea {  color: #444;}"+"\n");
//		data.append("h1, h2, h3, h4, h5, h6 { font-weight: normal; }"+"\n");		
//		data.append("a, a:active, a:visited { color: #607890; }"+"\n");
//		data.append("a:hover { color: #036; }"+"\n");
//		data.append(".nocallout {-webkit-touch-callout: none;}"+"\n");
//		data.append(".ellipsis {text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}"+"\n");
//		data.append("textarea.contenteditable {-webkit-appearance: none;}"+"\n");
//		data.append(".gifhidden {position: absolute; left: -100%;}"+"\n");
//		data.append("center{font-size: 0; line-height: 0;}"+"\n");
//		data.append("body { background: #fff; font-family: arial,sans-serif; font-size: 12px;text-align: justify;}"+"\n");//ajout justify
//		data.append("a:link, a:hover, a:visited{color: #0033AA;	text-decoration: none;}"+"\n");
//		data.append(".clear{ display: block; clear: both; line-height: 0; font-size: 0; height: 0;}"+"\n");
//		data.append("#header{padding: 5px 0;}"+"\n");
//		data.append("#main-zone-content{ padding: 0 4px;	}"+"\n");
//		data.append("#articleTitle{  margin: 10px 0 20px;  padding: 0 4px;}"+"\n");
//		data.append("#articleTitle .overHeading{color: #666;font-family: verdana,sans-serif;font-size: 10px;font-weight: bold;line-height: normal;padding-bottom: 3px;}"+"\n");
//		data.append("#articleTitle h1{color: #000;font-size: 18px;font-family: georgia,serif;font-weight: normal;}"+"\n");
//		data.append("#articleTitle .dateline {color: #444;font-size: 11px;padding: 2px 0;}"+"\n");
//		data.append("#articleContent{ padding: 0 4px;}"+"\n");
//		data.append(".articleText {color: #222222; float: left; font-size: 14px; font-family: georgia,serif; width: 100%;line-height: 18px;}"+"\n");
//		data.append(".LM_atome{ text-align: left;  margin-bottom: 15px;}"+"\n");
//		data.append(".LM_atome_illustration{ max-width: 99%;	}"+"\n");
//		data.append(".LM_image{ border: 1px solid #999; display: inline-block; font-size: 0;line-height: 0; max-width: 99%; padding: 1px;}"+"\n");
//		data.append(".LM_atome_illustration img{max-width: 100%;}"+"\n");
//		data.append(".LM_caption, .LM_caption a { color: #222; font-size: 12px; line-height: 14px; text-align: left;}"+"\n");
//		data.append("#articleContent .reactions{  margin: 10px 0 0 0;}"+"\n");
//		data.append("#articleContent .reactions .entete{display: block;font-size: 14px;font-weight: bold;color: #000;padding: 8px 0 0 0;"+"\n");
//		data.append("background: url(\"/medias/mobile/img/tit/titleBar2.gif\") repeat-x scroll left top transparent;}"+"\n");
//		data.append("#articleContent .reactions .auteur{ display: block; font-weight: bold;}"+"\n");
//		data.append("#articleContent .auteur{ display: block; font-weight: bold; padding: 2px 0 0 0;}"+"\n");
//		data.append("#articleContent a.bt_jaune_gris_petit{ display: none;}"+"\n");
//		data.append("#articleContent .reactions p{ margin: 5px 0 0 0; background: url(\"/medias/www/img/icn/arrow.gif\") no-repeat scroll left 2px transparent; padding-left: 11px;}"+"\n");

		
		//mise à jour de mars 2012
		
		data.append("article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}"+"\n");
		data.append("audio,canvas,video{display:inline;zoom:1}"+"\n");
		data.append("html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}"+"\n");
		data.append("html,button,input,select,textarea{font-family:sans-serif}"+"\n");
		data.append("a:focus{outline:thin dotted}"+"\n");
		data.append("a:hover,a:active{outline:0}"+"\n");
		data.append("h1,h2,h3,h4,h5,h6{font-weight:700;margin:0}"+"\n");
		data.append("p{-webkit-margin-before:0;-webkit-margin-after:0}"+"\n");
		data.append("abbr[title]{border-bottom:1px dotted}"+"\n");
		data.append("b,strong{font-weight:700}"+"\n");
		data.append("blockquote{margin:1em 40px}"+"\n");
		data.append("dfn{font-style:italic}"+"\n");
		data.append("mark{background:#ff0;color:#000}"+"\n");
		data.append("pre,code,kbd,samp{font-family:monospace, serif;_font-family:'courier new', monospace;font-size:1em}"+"\n");
		data.append("pre{white-space:pre-wrap;word-wrap:break-word}"+"\n");
		data.append("q{quotes:none}"+"\n");
		data.append("q:before,q:after{content:none}"+"\n");
		data.append("small{font-size:75%}"+"\n");
		data.append("sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}"+"\n");
		data.append("sup{top:-.5em}"+"\n");
		data.append("sub{bottom:-.25em}"+"\n");
		data.append("ul,ol{list-style-type:none;margin:0;padding:0}"+"\n");
		data.append("dd{margin:0 0 0 40px}"+"\n");
		data.append("nav ul,nav ol{list-style:none;list-style-image:none}"+"\n");
		data.append("img{border:0;-ms-interpolation-mode:bicubic}"+"\n");
		data.append("svg:not(:root){overflow:hidden}"+"\n");
		data.append("fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}"+"\n");
		data.append("legend{border:0;white-space:normal;margin-left:-7px;padding:0}"+"\n");
		data.append("button,input,select,textarea{font-size:100%;vertical-align:middle;margin:0}"+"\n");
		data.append("button,input{line-height:normal}"+"\n");
		data.append("button,input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button;overflow:visible}"+"\n");
		data.append("button[disabled],input[disabled]{cursor:default}"+"\n");
		data.append("input[type=checkbox],input[type=radio]{box-sizing:border-box;height:13px;width:13px;padding:0}"+"\n");
		data.append("input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}"+"\n");
		data.append("input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}"+"\n");
		data.append("button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}"+"\n");
		data.append("textarea{overflow:auto;vertical-align:top}"+"\n");
		data.append("table{border-collapse:collapse;border-spacing:0}"+"\n");
		data.append("audio:not([controls]),[hidden]{display:none}"+"\n");
		data.append("body,figure,form{margin:0}"+"\n");

		/* Base */

		data.append("html{font-size:62.5%}"+"\n");
		data.append("body{font-size:13px;line-height:120%;font-family:arial, sans-serif;color:#000;text-align:justify;}"+"\n");//ajout justify et en lever background:#E9ECF0
		data.append("a{color:#036;text-decoration:none;cursor:pointer}"+"\n");
		data.append(".clearfix:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}"+"\n");
		data.append("a:hover,a:focus,a:active,.lien_focus,.flashy{color:#129af0}"+"\n");
		/*#container{width:320px}*/
		data.append(".type_element,.nature_edito{font-size:.8em;font-family:arial, sans-serif;font-weight:700;color:#A2A9AE;text-transform:uppercase;white-space:nowrap}"+"\n");
		data.append(".more .button{display:block;height:15px;line-height:0;text-indent:-9999px;background:#e4e6e9 url(/medias/web/img/pictos/chevrons_double_haut_bas.png) no-repeat 50% 3px;border-top:1px solid #a2a9ae;border-bottom:1px solid #D2D6DB;margin:5px 0}"+"\n");
		data.append(".more.open .button{background-position:50% -13px}"+"\n");
		data.append(".liste-titres{font-size:12px;list-style-type:square;padding:0 0 0 15px}"+"\n");
		data.append(".liste-titres li{padding-bottom:5px}"+"\n");
		data.append("article.titre{margin-bottom:10px}"+"\n");
		data.append("article.titre .picture{float:left;display:block;margin-right:5px}"+"\n");
		data.append("article.titre h2{font-size:14px;line-height:15px;padding-bottom:3px}"+"\n");
		data.append("article.une h1{font-family:georgia,georgia,serif;font-weight:normal;font-size:22px;line-height:25px;padding-bottom:8px}"+"\n");
		data.append("article.une p{font-size:11px;line-height:13px;padding-bottom:5px}"+"\n");
		data.append(".content-block{background:#fff;padding:5px}"+"\n");

		data.append(".nb_reactions{display:none}"+"\n");


		/* Header */

		data.append("#header{height:22px;background:#fff;border-bottom:1px solid #D2D6DB;margin-bottom:10px;padding:3px 0 3px 5px}"+"\n");
		data.append(".une #header{height:36px;text-align:center;padding:5px 0 3px 10px}"+"\n");
		data.append("#header .logo{background:url(/medias/web/img/elements_lm/logo_lm240x42.png) 0 0;width:120px;height:21px;display:block;text-indent:-9999px;-moz-background-size:120px 42px;-o-background-size:120px 42px;-webkit-background-size:120px 42px;background-size:120px 42px}"+"\n");
		data.append(".une #header .logo{margin:0 auto}"+"\n");
		data.append("#header .logo a{display:block;height:21px;width:120px}"+"\n");
		data.append("#header .update{font-size:10px;display:none}"+"\n");
		data.append(".une #header .update{font-size:10px;display:block}"+"\n");

		/* Footer */

		data.append("#footer{height:20px;background:#fff;border-top:1px solid #D2D6DB;margin-top:10px;font-size:11px;padding:5px}"+"\n");
		data.append("#footer .complete-website{float:right}"+"\n");

		
		/* Article */

		data.append("article.article h1{font-size:18px;line-height:22px;padding:5px 0}"+"\n");
		data.append("article.article .infos{color:#A2A9AE;font-size:11px;line-height:13px;margin:0}"+"\n");
		data.append("article.article .auteur{font-weight:700;font-size:11px;color:#747B83;margin:0}"+"\n");
		data.append("article.article .illustration{line-height:0}"+"\n");
		data.append("article.article .illustration figure{margin:0;padding:0}"+"\n");
		data.append("article.article .illustration figcaption{background:#E9ECF0;color:#747B83;font-size:12px;line-height:14px;padding:5px;max-width:490px}"+"\n");//ajout max-with
		data.append("article.article .body{font-size:13px;line-height:18px}"+"\n");
		data.append("article.article p{margin:12px 0}"+"\n");
		data.append("article.article blockquote{display:block;clear:both;padding-left:10px;border-left:4px solid #B9C0C5;color:#5D666D;margin:20px 0}"+"\n");
		data.append("article.article h2{font-size:14px;font-weight:700;margin:10px 0 0 5px}"+"\n");
		data.append("article.article p.not-supported{font-size:12px;font-style:italic}"+"\n");
		data.append("article.article ol{list-style-type:decimal;padding-left:20px}"+"\n");
		data.append("article.article ul{list-style-type:square;padding-left:20px}"+"\n");

		data.append(".fenetre{background:#f8f9fb;border:1px solid #eef1f5;color:#16212c;margin:0 0 25px;padding:10px 16px}"+"\n");
		data.append(".fenetre .title{font-size:16px;font-weight:700}"+"\n");
		data.append(".fenetre p{margin:6px 0}"+"\n");

		data.append("article.article .audiojs p{margin:0}"+"\n");
		data.append("article.article .audio-source{font-size: 11px;font-style: italic;margin-top:-10px;color:#737373}"+"\n");
		
		//ajout de bordure
		data.append("body { padding-left:10px; padding-right:10px;}"+"\n");
		//adapter les images et video
		data.append("article.article img {WIDTH:100%;max-width:500px;}"+"\n");
		data.append("article.article iframe {WIDTH:100%;max-width:500px;}"+"\n");
		return(data.toString());
	}
}
